package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Banner;
import cn.wolfcode.luowowo.domain.Travel;
import cn.wolfcode.luowowo.domain.User;
import cn.wolfcode.luowowo.domain.UserInfo;
import cn.wolfcode.luowowo.query.BannerQuery;
import org.springframework.data.domain.Page;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IBannerService<T> {

    void save(Banner banner);

    void delete(String id);

    Banner get(String id);

    List<Banner> list();

    Page<T> query(BannerQuery query);

    void saveOrUpdate(Banner banner);

    List<Banner> queryTop5();

    List<Banner> queryTop1();

    User getViewNum(String ownerId, HttpServletRequest request);

    List<UserInfo> queryTop8ById(String ownerId);

    List<UserInfo> show(String ownerId);

    int increaseTodayview(String ownerId,HttpServletRequest request);
}
